package com.gmq.chapter01.interrupt;

/**
 * Created by gmq on 2017/08/09.
 * 在沉睡中停止
 *
 * @version 1.0
 * @since 2017/08/09 14:29
 */
public class MyThread03 extends Thread {

    @Override
    public void run() {
        super.run();

        try {
            System.out.println(" run begin ");
            Thread.sleep(200000);
            System.out.println(" run end ");
        } catch (InterruptedException e) {
            System.out.println("在沉睡中被停止！进入catch this.isInterrupted()： " + this.isInterrupted());
            e.printStackTrace();
        }
    }
}


